//
//  ViewController.m
//  Tan_Map
//
//  Created by 亲哥哥 on 2018/4/29.
//  Copyright © 2018年 亲哥哥. All rights reserved.
//

#import "ViewController.h"
#import "TanMapVC.h"


@interface ViewController ()



@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    CGSize size = [UIScreen mainScreen].bounds.size;
    UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(50, 100, size.width-100, 100)];
    [btn setTitle:@"查看地图定位" forState:UIControlStateNormal];
    [btn setBackgroundColor:[UIColor grayColor]];
    [btn addTarget:self action:@selector(seeMap) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
}

- (void)seeMap{
    TanMapVC *vc = [TanMapVC new];
    [self presentViewController:vc animated:YES completion:nil];
}

- (void)dealloc{
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
